<?php	
						$sql = mysql_query("select * from users where user_id=".$_REQUEST['u_id']);       
						
						$row= mysql_fetch_array($sql);
						?>
					<form name="edit_user" id="edit_user" method="post" action="edit_user_process.php">
						<table border="0" width="100%" cellspacing="3" cellpadding="2" class="pro">      
							<tr><td colspan="2" class="create">EDIT USER</td></tr>
							<tr><td colspan="2" style="height:15px;"></td></tr>
							<tr>
								<td><span class="label">First Name</span></td>
								<td>:</td>
								
                                    <td><input  type="text" id="fname" name="fname" class="validate[required,custom[noSpecialCaracters],length[0,20]]" value="<?php echo $row['fname']; ?>"></td>    
									<td><input  type="hidden" id="user_id" name="user_id" value="<?php echo $row['user_id']; ?>"></td>
                                </tr>
                                
                                <tr>
                                    <td>Last Name</td>
									<td>:</td>
                                    <td><input  type="text" id="lname" name="lname" class="validate[required,custom[noSpecialCaracters],length[0,20]]" value="<?php echo $row['lname']; ?>"></td>
                                    </td>
                                    
                                </tr>
                                <tr>
                                     <td>Address</td>
									 <td>:</td>
                                    <td><textarea rows="3" cols="25" name="address" id="address" class="validate[required,custom[noSpecialCaracters],length[0,20]]" ><?php echo $row['address']; ?></textarea>
                                    </td>
                                    
                                </tr>                                  
                                <tr>
                                    <td>Phone</td>
									<td>:</td>
									<td><input  type="text" name="phone" id="phone" class="subcategory" clas"validate[required]" value="<?php echo $row['phone']; ?>"><!-- change class -->
                                    </td>   
                                </tr>				
                                
                                <tr>
                                    <td>Mobile</td>
									<td>:</td>
                                    <td><input  type="text" name="mob" id="mob" class="subcategory" clas"validate[required]" value="<?php echo $row['mob']; ?>"><!-- change class -->
                                     </td>   
                                </tr>				
                                      
                                <tr>
                                    
                                    <td>Username</td>
									<td>:</td>
                                    <td><input  type="text" name="username" id="username" class="category" class"validate[required]" value="<?php echo $row['username']; ?>"></td><!-- change class -->
                               </tr>                                                                                               
								<tr>
								
								  </tr> 
          
                                <tr><td colspan="2" style="height:10px;"></tr>						
                                <tr>
                                    <td colspan="3" align="center"><input type="submit" name="submit" value="Submit" onClick="return validate();" class="sub-butt"/></td>
                                </tr>
						</table>
					</form>
					<?php
						//}
					?>
                    </td>                    
                </tr>               
            </table>   <!--end User Form-->


			
